import request from '@/utils/request'

// 查询考评赋分列表
export function listScore(query) {
  return request({
    url: '/assess/assessScore/list',
    method: 'get',
    params: query
  })
}

// 查询考评赋分详细
export function getScore(id) {
  return request({
    url: '/assess/assessScore/' + id,
    method: 'get'
  })
}

// 新增考评赋分
export function addScore(data) {
  return request({
    url: '/assess/assessScore',
    method: 'post',
    data: data
  })
}

// 修改考评赋分
export function updateScore(data) {
  return request({
    url: '/assess/assessScore',
    method: 'put',
    data: data
  })
}

// 删除考评赋分
export function delScore(id) {
  return request({
    url: '/assess/assessScore/' + id,
    method: 'delete'
  })
}
// 逻辑删除考评赋分
export function delLogicScore(id) {
  return request({
    url: '/assess/assessScore/logicRemove/' + id,
    method: 'delete'
  })
}
// 逻辑批量删除考评赋分
export function delLogicBatchScore(id) {
  return request({
    url: '/assess/assessScore/logicBatchRemove/' + id,
    method: 'delete'
  })
}

// 导出考评赋分
export function exportScore(query) {
  return request({
    url: '/assess/assessScore/export',
    method: 'get',
    params: query
  })
}
